package com.dianjing.dianqun.utils;

/**
 * @date : 2017年11月23日
 * 
 * @author: baoyongtao
 * 
 * @see :
 * 
 */
public enum ShareEnum {
	ABOUT(1, "share/about"), DIANPAI(2, "share/dianpai"), CONTENT(3, "share/content"), TEAM(4, "share/team");

	private Integer type;

	private String url;

	private ShareEnum(Integer type, String url) {
		this.type = type;
		this.url = url;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public static String getURL(int type) {
		for (ShareEnum c : ShareEnum.values()) {
			if (c.getType() == type) {
				return c.url;
			}
		}
		return null;
	}

}
